package com.itheima.pinda.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.pinda.entity.Member;

import java.util.List;

/**
 * 用户服务接口
 */
public interface PdMemberService {

    /**
     * 新增
     *
     * @param member
     * @return
     */
    Member insert(Member member);

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    Member selectById(String id);

    /**
     * 分页查询
     *
     * @param pageNum
     * @param pageSize
     * @return
     */
    IPage selectByPage(Integer pageNum, Integer pageSize);

    /**
     * 批量删除
     *
     * @param ids
     */
    void delete(List<String> ids);

}